# from zhipuai import ZhipuAI
# # 地址：https://www.bigmodel.cn/dev/api/search-tool/web-search
# client = ZhipuAI(api_key="xxx")  # 填写您自己的APIKey
#
# response = client.web_search.web_search(
#     search_engine="search_pro",
#     search_query="中国近代历史",
#     count=50,  # 返回结果的条数，范围1-50，默认10
#     search_domain_filter="www.sohu.com",  # 只访问指定域名的内容
#     search_recency_filter="noLimit",  # 搜索指定日期范围内的内容
#     content_size="high"  # 控制网页摘要的字数，默认medium
# )
# print(response.search_result[0].content)
